<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Dokumentacja pliku aquamat.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja pliku aquamat.c</h1><h3>(r58/r57)</h3>
<p>Główna pętla programowa.  
<a href="#_details">Więcej...</a></p>
<code>#include &quot;<a class="el" href="aquamat_8h_source.html">aquamat.h</a>&quot;</code><br/>
<code>#include &lt;avr/interrupt.h&gt;</code><br/>
<code>#include &lt;avr/wdt.h&gt;</code><br/>
<code>#include &lt;stdint.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="hd44780_8h_source.html">hd44780.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="usart_8h_source.html">usart.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="comm__gui_8h_source.html">comm_gui.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="rtc_8h_source.html">rtc.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ui_8h_source.html">ui.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="one__wire_8h_source.html">one_wire.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="eeprom_8h_source.html">eeprom.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="temp_8h_source.html">temp.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="log_8h_source.html">log.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="outputs_8h_source.html">outputs.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="twi_8h_source.html">twi.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="timers_8h_source.html">timers.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="timersv_8h_source.html">timersv.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="alarms_8h_source.html">alarms.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="strings_8h_source.html">strings.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="top__off_8h_source.html">top_off.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="commandsDefs_8h_source.html">commandsDefs.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="qbuttons_8h_source.html">qbuttons.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="menu_8h_source.html">menu.h</a>&quot;</code><br/>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Funkcje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="aquamat_8c.html#af63a4042de4220d64088f03ef65f9dbf">ioinit</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="aquamat_8c.html#a690a124382a5bf706d4ee409eca0f80f">set_MIT</a> (struct <a class="el" href="structMIT.html">MIT</a> *mit, uint8_t <a class="el" href="ui_8c.html#a00a531a34a1d603329df5778f1203ab6">hours</a>, uint8_t <a class="el" href="ui_8c.html#a7acca8be0094a19be6e308ac05924c4f">minutes</a>, uint8_t default_hours, uint8_t default_minutes)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="aquamat_8c.html#ada2ee06dc8187891cf8d9f10582056b1">is_not_valid_MIT</a> (struct <a class="el" href="structMIT.html">MIT</a> *mit)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="aquamat_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr><td colspan="2"><h2>Zmienne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="ui_8c.html#a200eaeded377a7a8d9222c3eb6d0031d">PROGMEM</a> unsigned char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="aquamat_8c.html#a5b037b4fe89b1d907799ac5821a09a8d">extraChar</a> []</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Definicja dodatkowych znaków LCD.  <a href="#a5b037b4fe89b1d907799ac5821a09a8d"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<p>Główna pętla programowa. </p>
<hr/><h2>Dokumentacja funkcji</h2>
<a class="anchor" id="af63a4042de4220d64088f03ef65f9dbf"></a><!-- doxytag: member="aquamat.c::ioinit" ref="af63a4042de4220d64088f03ef65f9dbf" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ioinit </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Inicjalizacja urządzeń wejścia / wyjścia. </p>

</div>
</div>
<a class="anchor" id="ada2ee06dc8187891cf8d9f10582056b1"></a><!-- doxytag: member="aquamat.c::is_not_valid_MIT" ref="ada2ee06dc8187891cf8d9f10582056b1" args="(struct MIT *mit)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t is_not_valid_MIT </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structMIT.html">MIT</a> *&nbsp;</td>
          <td class="paramname"> <em>mit</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sprawdza czy struktura <a class="el" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a> zawiera dopuszczalne wartości. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>*mit</em>&nbsp;</td><td>wskaźnik do struktury </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd><a class="el" href="aquamat_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> - zawiera niedopuszczalne wartości, <a class="el" href="aquamat_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a> - zawiera dopuszczalne wartości </dd></dl>

</div>
</div>
<a class="anchor" id="a840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="aquamat.c::main" ref="a840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Główna funkcja programu </p>

</div>
</div>
<a class="anchor" id="a690a124382a5bf706d4ee409eca0f80f"></a><!-- doxytag: member="aquamat.c::set_MIT" ref="a690a124382a5bf706d4ee409eca0f80f" args="(struct MIT *mit, uint8_t hours, uint8_t minutes, uint8_t default_hours, uint8_t default_minutes)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void set_MIT </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structMIT.html">MIT</a> *&nbsp;</td>
          <td class="paramname"> <em>mit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>hours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>minutes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>default_hours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>default_minutes</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ustawia strukturę <a class="el" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a>. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>*mit</em>&nbsp;</td><td>wskaźnik do struktury </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hours</em>&nbsp;</td><td>wartość godziny </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>minutes</em>&nbsp;</td><td>wartość minut </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>default_hours</em>&nbsp;</td><td>wartość godziny </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>default_minutes</em>&nbsp;</td><td>wartość minut </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Dokumentacja zmiennych</h2>
<a class="anchor" id="a5b037b4fe89b1d907799ac5821a09a8d"></a><!-- doxytag: member="aquamat.c::extraChar" ref="a5b037b4fe89b1d907799ac5821a09a8d" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="ui_8c.html#a200eaeded377a7a8d9222c3eb6d0031d">PROGMEM</a> unsigned char <a class="el" href="aquamat_8c.html#a5b037b4fe89b1d907799ac5821a09a8d">extraChar</a>[]<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Wartość początkowa:</b><div class="fragment"><pre class="fragment">
{
    0x1c, 0x14, 0x1c, 0x0, 0x3, 0x4, 0x4,0x3,   
    0xa, 0xa, 0xe, 0x4, 0x4, 0xe, 0xa, 0xa,     
    0x11, 0xa, 0x4, 0x11, 0xa, 0x4, 0x0, 0x0,   
    0x4, 0xa, 0x11, 0x4, 0xa, 0x11, 0x0, 0x0,   
    0xe, 0xa, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0,     
    0xe, 0xa, 0xe, 0x0, 0x8, 0xe, 0xa, 0xe,     
    0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xe, 0xe,     
    0x8, 0xe, 0xa, 0xe, 0x0, 0xe, 0xe, 0xe      
}
</pre></div>
<p>Definicja dodatkowych znaków LCD. </p>

</div>
</div>
</div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
